project=multiply
outdir=build

target=$(outdir)/$(project)
source = main.c
sources = $(project).c $(project).h $(source)
cflags = -g --save-temps
main: $(outdir) main.c 
	gcc $(cflags) -o $(target) $(source)

macro: $(outdir) main.c 
	gcc $(cflags) -o $(target) $(source) -DGOLDFISH

$(outdir):
	mkdir -p $(outdir)


clean:
	rm -r $(outdir)